﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
//返回两个数的和或两个数的差
namespace out参数
{
    class Program
    {
        static void Main(string[] args)
        {
            int x1 = 3;
            int x2 = 5;
            int x3;
            int x4;
            AddM(x1, x2,out x3,out x4);
            Console.WriteLine("{0},{1}",x3,x4);

        }
        static void AddM(int x1, int x2, out int x3,out int x4)
        {
            x3 = x1 + x2;
            x4 = x1 - x2;
        }
    }
    
}
